-- GENERATED SPELL FOR [Daggermaw Lashtail] --


function spell0_20751(pUnit, Event) --@Charge,n/a--
pUnit:FullCastSpellOnTarget(35570,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20751', 2309, 1)
end

function spell1_20751(pUnit, Event) --@Infected Bite,n/a--
pUnit:FullCastSpellOnTarget(7367,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20751', 30000, 1)
end

function Sorts_20751(pUnit, Event)
local choix_sorts_20751 = math.random(0, 1)
if choix_sorts_20751 == 0 then
pUnit:RegisterEvent('spell0_20751', 1, 1)
end
if choix_sorts_20751 == 1 then
pUnit:RegisterEvent('spell1_20751', 1, 1)
end
end

function mob20751_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20751', math.random(1500, 3000), 1)
end

function mob20751_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20751_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20751_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20751, 1, 'mob20751_Action')
RegisterUnitEvent(20751, 2, 'mob20751_Leave')
RegisterUnitEvent(20751, 3, 'mob20751_Kill')
RegisterUnitEvent(20751, 4, 'mob20751_Die')
